<div class="flexform">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'product-powerleveling-form',
        'enableAjaxValidation' => false
            ));
    ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'pl_game'); ?>
        <?php echo $form->dropDownList($model, 'pl_game', array(''=>'')+ProductCategory::model()->getGameSelect()); ?>
        <?php echo $form->error($model, 'pl_game', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'pl_level'); ?>
        <?php echo $form->textField($model, 'pl_level', array('size' => 4, 'maxlength' => 4)); ?>
        <?php echo $form->error($model, 'pl_level', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'pl_price'); ?>
        <?php echo $form->textField($model, 'pl_price', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'pl_price', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'pl_time'); ?>
        <?php echo $form->textField($model, 'pl_time', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'pl_time', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="action">
        <?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
    </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>